package com.jungle.app.domain.entity;

import com.jungle.common.core.domain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Comment;
import org.hibernate.annotations.SQLDelete;
import org.hibernate.annotations.Where;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "jw_spot_facility")
@org.hibernate.annotations.Table(appliesTo = "jw_spot_facility", comment = "景点设施表")
@Where(clause = "deleted is null or deleted != true")
@SQLDelete(sql = "update jw_spot_facility set deleted = true where id = ? ")
public class JwSpotFacility extends BaseEntity {


    @Comment("设施ID")
    @Column(name = "FacilityID")
    private String facilityID;

    @Comment("景点ID")
    @Column(name = "ScenicSpotID")
    private String scenicSpotID;

    @Comment("设施名称")
    @Column(name = "Name")
    private String name;

    @Comment("设施类型")
    @Column(name = "Type")
    private String type;

    @Comment("设施介绍")
    @Column(name = "Introduction")
    private String introduction;

    @Comment("设施详情")
    @Column(name = "Details")
    private String details;

    @Comment("设施状态")
    @Column(name = "Status")
    private String status;

    @Comment("设施开放时间")
    @Column(name = "OpenTime")
    private String openTime;

    @Comment("设施位置")
    @Column(name = "Location")
    private String location;

}
